from settings import SEND_ALERTS, SEND_NOTIFICATIONS, SEND_MESSAGES, DEBUG


class Console:
    def __init__(self, send_notifications = False, send_alerts = True, send_messages = False, debug = False):
        self.sending_alerts = send_alerts
        self.send_notifications = send_notifications
        self.send_messages = send_messages
        self.send_debug = debug

    def send_notification(self, message):
        if self.send_notifications:
            print(message)

    def send_message(self, message):
        if self.send_messages:
            print(message)

    def send_alert(self, message):
        if self.sending_alerts:
            print(message)

    def debug(self, message):
        if self.send_debug:
            print("Debug: {}".format(message))

    @staticmethod
    def send_critical(message):
        print(message)



console = Console(send_alerts=SEND_ALERTS, send_notifications=SEND_NOTIFICATIONS, send_messages=SEND_MESSAGES, debug=DEBUG)
